package cn.stylefeng.guns.modular.addressbook.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.util.Date;

/**
 * 封装类
 *
 * @author xbz
 * @date 2023/04/27 09:19
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DepartmentRequest extends BaseRequest {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("主键id")
    private Long id;

    /**
     * 部门名称
     */
    @ChineseDescription("部门名称")
    private String departmentName;

    /**
     * 删除标记：Y-已删除，N-未删除
     */
    @ChineseDescription("删除标记：Y-已删除，N-未删除")
    private String delFlag;

}
